home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C++ / Applications / NeuroSim 1.0 / .h / CNeuroSimApp.h < prev    next >
Text File  |  1996-02-19  |  1KB  |  42 lines

  1. // ===========================================================================
  2. //    CNeuroSimApp.h                ©1996 Timo Eloranta
  3. // ===========================================================================
  4. //    An application class derived from the PowerPlant LApplication class.
  5. //    This class handles the menu commands and owns the neural net and the
  6. //    window inside of which our pane object is.
  7.  
  8. #pragma once                            // Include this header only once
  9.  
  10. #include "NS_Types.h"
  11.  
  12. #include <LApplication.h>                // PowerPlant application class
  13.  
  14. class    LWindow;                        // Forward class declarations
  15. class    CNeuralNet;
  16.  
  17. class    CNeuroSimApp : public LApplication {
  18.  
  19.     protected:
  20.         CNeuralNet        *mNet;            // Pointer to the neural net
  21.         
  22.         LWindow         *mWindow;        // Pointer to the main window
  23.  
  24.         SGenParams        mParams;        // Parameter struct used in
  25.                                         // creating the neural net
  26.  
  27.         virtual void        InitNewNet();
  28.         virtual void        ShowAboutBox();
  29.         void                RegisterClasses();
  30.         
  31.     public:
  32.                             CNeuroSimApp();
  33.         virtual             ~CNeuroSimApp();
  34.         
  35.         virtual Boolean        ObeyCommand(        CommandT inCommand, 
  36.                                                 void *ioParam = nil );
  37.         virtual void        FindCommandStatus(    CommandT inCommand,
  38.                                                 Boolean &outEnabled,
  39.                                                 Boolean &outUsesMark,
  40.                                                 Char16 &outMark,
  41.                                                 Str255 outName );
  42. };